package com.leo.foodmaster.admin.stock.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.leo.foodmaster.admin.purchase.entity.Supplier;
import com.leo.foodmaster.admin.stock.entity.WarehouseStock;

/**
 * <p>
 * 仓库库存服务类
 * </p>
 *
 * @author ：Leo
 * @since ：2021/9/19 18:24
 */
public interface IWarehouseStockService extends IService<WarehouseStock> {

    /**
     * 条件分页查询仓库库存
     * @param page 分页条件
     * @param warehouseId 仓库Id
     * @param foodMaterialName 食材名称
     * @param foodMaterialTypeId 食材类型Id
     * @return IPage<WarehouseStock>
     */
    IPage<WarehouseStock> getWarehouseStockPageList(Page<Object> page, Long warehouseId,
                                                    String foodMaterialName, Long foodMaterialTypeId);
}
